package com.ruoyi.voucher.domain;

import java.math.BigDecimal;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 凭证明细对象 voucher_detail
 * 
 * @author ruoyi
 * @date 2025-02-26
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class VoucherDetail
{
    private static final long serialVersionUID = 1L;

    /** 明细ID */
    @TableId(type = IdType.AUTO)
    private Long detailId;

    /** 凭证ID */
    private Long voucherId;

    /** 科目ID */
    private Long subjectId;

    /** 摘要ID */
    private Long summaryId;

    /** 借方金额 */
    @ExcelProperty(value = "借方金额",  index = 2)
    private BigDecimal debitAmount;

    /** 贷方金额 */
    @ExcelProperty(value = "贷方金额",  index = 3)
    private BigDecimal creditAmount;

    //摘要内容
    @TableField(exist = false)
    @ExcelProperty(value = "摘要内容",  index = 0)
    private String summaryContent;

    //科目名称
    @TableField(exist = false)
    @ExcelProperty(value = "科目名称",  index = 1)
    private String subjectName;


}
